import React, { Component } from 'react';
import { Link } from 'react-router';
import errImgs from '../../style/imgs/404.png';
import { Card, Button } from "antd";

class BaseCardLoad extends Component {
    render() {
        return (
            <div>
                <Card bordered={false} loading style={{ width: '100%' }}>&nbsp;</Card>
            </div>
        )
    }
}

class NotOpen extends Component {
    render() {
        return (
            <div className={"page-error"}>
                <div className={"item"}>
                    <img src={errImgs} alt="404" className={"img-404"} />
                </div>
                <div className={"item item2"}>
                    <p>抱歉，你访问的功能还未开放</p>
                    <Link to={"/app/index"}><Button type={"primary"} size={"small"}>返回首页</Button></Link>
                </div>
            </div>
        )
    }
}

export { BaseCardLoad, NotOpen }